let promise1=new Promise((resolve, reject) => {
	setTimeout(()=>{
		resolve();
	},1000);
})
let promise2=new Promise((resolve, reject) => {
	setTimeout(()=>{
		reject();
	},1000);
})
let promise3=new Promise((resolve, reject) => {
	setTimeout(()=>{
		throw "出错了"
	},2000);
})
let promise4=Promise.resolve();
let promise5=Promise.resolve();
promise1.then(()=>{
	console.log("成功")
})
promise2.then(()=>{},reason => {
	console.log("失败了")
})
promise3.catch(reason => {
	console.log(reason)
})
promise4.then(value => {
	console.log("成功了")
})
Promise.all([promise1,promise4,promise5]).then(res=>{
	console.log(res)
}).catch(reason => {
	console.log(reason)
})
Promise.race([promise1,promise2,promise4]).then(res=>{
	console.log(res,'成功')
})
Promise.any([promise1,promise2,promise4]).then(res=>{
	console.log(res,'成功')
})
